﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage_admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["diaoc_admin_do_online"] == null)
        {
            Response.Redirect("/admin/");
        }
    }

    protected void BLogout_Click(object sender, EventArgs e)
    {
        Session.Remove("diaoc_admin_do_online");
        Response.Redirect("/");
    }
    protected void btnMenu_Click(object sender, EventArgs e)
    {
        string url = Convert.ToString((sender as LinkButton).CommandName);
        Response.Redirect(url);
    }
}
